package gb.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import gb.demo.entity.Label;
import gb.demo.mapper.LabelMapper;
import gb.demo.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LabelServiceImpl extends ServiceImpl<LabelMapper, Label> implements LabelService {
    @Autowired
    private LabelMapper labelMapper;

    public List<Label> findAllLabels() {
        return labelMapper.selectList(null);
    }
}
